package com.hzt.agprosaleplatform.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.List;

//订单列表响应实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetailDTO {
    private Integer oid;
    private Integer shop_id;
    private Integer address_id;
    private String order_message;
    private Integer status;
    private float total_price;
    private Timestamp created_date;
    private Timestamp update_date;
    private List<GoodsItemDTO> goods;

    @Data
    public static class GoodsItemDTO{
        private int gid;
        private String goodsImg;
        private String title;
        private List<String> tags;
        private String TagsStr;
        private float unit_price;
        private int amount;
        private float sub_price;
    }

}
